package club.tclyq.good_time.upload.repository;

import club.tclyq.good_time.upload.bean.Photo;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

/**
 * @author tanchong
 * Create Date: 2019/2/21
 */
public interface PhotoRepository extends MongoRepository<Photo, ObjectId> {
    List<Photo> findTop10ByOrderByIdDesc();
}
